/**
 * 
 */
package com.safx.entity.constants;

import com.safx.entity.env.Environment;

/**
 * xpath集合
 * 
 * @author cooloo
 * 
 */
public final class Xpath {
	//升级页面判断出现的XPATH
	public final static String FW_TITLE = "//div[@id='div_fwUpgrade']";
	//升级页面按钮
	public final static String FW_BUTTON = "//div[@id='div_fwUpgrade']/div[@class='btnw floatl']";
	//连接问题的xpath
	public final static String CONNECTION_ERROR = "//div[@id='win_ConnError']";
	//设备需要输入确认密码页面的xpath
	public final static String PWD_VERIFICATION = "//div[@id='win_content']/div[@style]/p[@style]";
	//设备掉线的xpath		
	// 2.3 public final static String OFFLINE =
	// "//div[@id='win_content']/div/p[@class='warning']";
	public final static String OFFLINE = "//div[@id='win_content']/div/h3";
	//MYdlink的tabbox的XPATH
	public final static String MYDLINK_TABBOX = "//div[@id='mydlinkTabBox']";
	//替换标签
	public final static String REPLACE = "${&}";
	//pagedata js标签的xpath
	public final static String JS_XPATH = "/info/targets/js[@name='" + REPLACE + "']";
	//pagedata xpath标签的xpath
	public final static String XPATH_XPATH = "/info/targets/xpath[@name='" + REPLACE + "']";
	//pagedata pagepath标签的xpath
	public final static String PAGEPATH_XPATH = "/info/targets/pagePath[@name='" + REPLACE + "']";
	//pagedata image标签的xpath
	public final static String IMAGE_XPATH = "/info/images/image[@name='" + REPLACE + "']";
	//pagedata message标签的xpath
	public final static String MESSAGE_XPATH = "/info/messages/message[@name='" + REPLACE + "']/content[@language='" + Environment.getInstance().getConfig().getLanguage() + "']";
	//pagedata color标签的xpath
	public final static String COLOR_XPATH = "/info/colors/color[@name='" + REPLACE + "']";
	//pagedata font标签的xpath
	public final static String FONT_XPATH = "/info/fonts/font[@name='" + REPLACE + "']";
	//pagedata emailinfo标签的xpath
	public final static String EMAILINFO_XPATH = "/info/emailEntitys/emailEntity[@name='" + REPLACE + "']";

}
